package com.ck.model.company.dto;

import com.ck.annotation.Children;
import com.ck.annotation.Id;
import com.ck.annotation.ParentId;

import java.util.List;

/**
 * 图片分组树DTO
 *
 * @author dxy
 * @date 2018/7/12 16:27
 */
public class PictureGroupTreeDTO {
	/**
	 * 图片组ID
	 */
	@Id
	private Long pictureGroupId;
	/**
	 * 图片组父ID
	 */
	@ParentId
	private Long pid;
	/**
	 * 上级图片组名称
	 */
	private String parentPicutreGroupName;
	/**
	 * 图片组名称
	 */
	private String label;
	/**
	 * 图片组编码
	 */
	private String picureGroupCode;

	private Boolean open = true;
	/**
	 * 子分组
	 */
	@Children
	private List<PictureGroupTreeDTO> children;

	public Long getPictureGroupId() {
		return pictureGroupId;
	}

	public void setPictureGroupId(Long pictureGroupId) {
		this.pictureGroupId = pictureGroupId;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getParentPicutreGroupName() {
		return parentPicutreGroupName;
	}

	public void setParentPicutreGroupName(String parentPicutreGroupName) {
		this.parentPicutreGroupName = parentPicutreGroupName;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getPicureGroupCode() {
		return picureGroupCode;
	}

	public void setPicureGroupCode(String picureGroupCode) {
		this.picureGroupCode = picureGroupCode;
	}

	public Boolean isOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public List<PictureGroupTreeDTO> getChildren() {
		return children;
	}

	public void setChildren(List<PictureGroupTreeDTO> children) {
		this.children = children;
	}

	@Override
	public String toString() {
		return "PictureGroupTreeDTO{" +
				"pictureGroupId=" + pictureGroupId +
				", pid=" + pid +
				", parentPicutreGroupName='" + parentPicutreGroupName + '\'' +
				", label='" + label + '\'' +
				", picureGroupCode='" + picureGroupCode + '\'' +
				", open=" + open +
				", children=" + children +
				'}';
	}
}
